<?php
namespace app\common\model;
use think\Model;
use think\Validate;
use app\common\controller\Tools;
class SystemMerchant extends Model
{
	protected $table = 'system_merchant';
	protected $pk = 'systerm_remind_id';
	public static function getOrderInfo($pagesize)
	{
		$where = [
			'systerm_remind_is_delete' => 0, 
			'systerm_remind_type' => 1,
			'systerm_remind_to_id' => session('merchant.merchant_id')
		];
        $data = SystemMerchant::field('syterm_remind_title, sytserm_remind_content,systerm_remind_create_time')->
		where($where)->
		order('systerm_remind_id', 'desc')->
		paginate($pagesize);
		// halt($data);
		return $data;
	}  

	public function getSystermRemindCreateTimeAttr($value)
	{
		$value = date('Y-m-d H:i:s', $value);
		return $value;
	}
	
	 
}